<template>
  <div class="footer">
    <div class="tabs">
      <div class="left">
        <div class="left-list" v-for="item in list" :key="item.id">
          <div class="title">{{ item.name }}</div>
          <div class="list" v-for="child in item.children" :key="child.id">
            {{ child.name }}
          </div>
        </div>
      </div>
      <div class="right">
        <img src="@/assets/weixin.jpg" />
        <div class="qq">QQ：1476156127</div>
        <div class="qq">Q群：681461961</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: [
        {
          id: 1,
          name: '链接',
          children: [
            {
              id: 1,
              name: '在线仓库',
            },
            {
              id: 2,
              name: '更新日志',
            },
            {
              id: 3,
              name: '常见问题',
            },
            {
              id: 4,
              name: '脚手架',
            },
          ],
        },
        {
          id: 2,
          name: '社区',
          children: [
            {
              id: 1,
              name: '在线讨论',
            },
            {
              id: 2,
              name: '反馈建议',
            },
            {
              id: 3,
              name: '贡献指南',
            },
          ],
        },
      ],
    }
  },
  methods: {},
  created() {},
}
</script>
<style lang="scss" scoped>
.footer {
  margin-top: 100px;
  height: 220px;
  background-color: #333;
  display: flex;
  flex-direction: column;

  .tabs {
    padding: 20px 10%;
    flex: 1;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #565656;

    .left {
      flex: 1;
      display: flex;
      flex-direction: row;
      color: #f1f1f1;
    }

    .right {
      width: 220px;
      text-align: left;

      img {
        width: 120px;
        height: 120px;
        margin-right: 12px;
      }
      .qq {
        font-size: 14px;
        color: #fff;
        margin-top: 5px;
      }
    }

    .left-list {
      margin: 0 20px;

      .title {
        font-size: 16px;
        line-height: 22px;
        margin: 10px 0;
      }

      .list {
        font-size: 14px;
        line-height: 24px;
        margin: 2px 0;
        cursor: pointer;
      }
    }
  }

  .info {
    line-height: 22px;
    padding: 5px 0;
    text-align: center;
    color: #f1f1f1;
    font-size: 12px;

    a {
      font-size: 12px;
      color: #fff;
      margin: 0 10px;
    }
  }
}
</style>
